<?php

namespace app\admin\validate;

use app\common\lib\Captcha;
use think\Validate;

class Message extends Validate
{
    protected $rule = [
        'id' => 'require',
        'request_ip' => 'require',
        'content' => 'require',
        'reply_content' => 'require',
    ];

    protected $scene=[
        //'create'=>['reply_content'],
        //'update'=>['id','reply_content'],
        'add'=>['content','request_ip'],
        'reply'=>['id','reply_content'],
    ];

    protected $message = [
        'id' => 'ID不能为空',
        'request_ip' => '请求IP不能为空',
        'content' => '留言内容不能为空',
        'reply_content' => '回复内容不能为空',
    ];
}
